package cn.edu.javaweb.service;

import java.util.List;

import cn.edu.javaweb.javabean.UserForumQuestion;
import cn.edu.javaweb.utils.DBUtil;

public class UserForumQuestionService {
	public List<UserForumQuestion> getQuestions(){
		DBUtil db;
        db = new DBUtil(); 
        List questionlist = db.getList("select * from question q left join user u on u.id=q.userid");
		return questionlist;				
	}

}
